package com.ly.honor.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.honor.entity.News;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.honor.entity.dto.NewsCreateDTO;
import com.ly.honor.entity.dto.NewsEditDTO;
import com.ly.honor.entity.dto.NewsQueryDTO;
import com.ly.honor.entity.vo.NewsQueryVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author 17798
* @description 针对表【bs_news】的数据库操作Service
* @createDate 2022-11-16 11:49:49
*/
public interface NewsService extends IService<News> {

    Page<NewsQueryVO> getNewsPageList(long pageNum, long pageSize, NewsQueryDTO newsDTO);

    NewsQueryVO getNewsById(long id);

    void insertNews(NewsCreateDTO newsCreateDTO);

    void updateNewsById(NewsEditDTO newsEditDTO);

    String upload(MultipartFile file);

    List<NewsQueryVO> recentlyHighHeatNews();

    void newsHeatRaise(Integer id);

    Page<NewsQueryVO> getNewsPageListDesc(long pageNum, long pageSize);

    String uploadVideo(MultipartFile file);
}
